import { RouteRecordRaw } from 'vue-router'

/**
 * 建议：路由 path 路径与文件夹名称相同，找文件可浏览器地址找，方便定位文件位置
 *
 * 路由meta对象参数说明
 * meta: {
 *      title:          菜单栏及 tagsView 栏、菜单搜索名称（国际化）
 *      isLink：        是否超链接菜单，开启外链条件，`1、isLink: 链接地址不为空 2、isIframe:false`
 *      isHide：        是否隐藏此路由
 *      isKeepAlive：   是否缓存组件状态
 *      isAffix：       是否固定在 tagsView 栏上
 *      isIframe：      是否内嵌窗口，开启条件，`1、isIframe:true 2、isLink：链接地址不为空`
 *      roles：         当前路由权限标识，取角色管理。控制路由显示、隐藏。超级管理员：admin 普通角色：common
 *      icon：          菜单、tagsView 图标，阿里：加 `iconfont xxx`，fontawesome：加 `fa xxx`
 * }
 */

// 扩展 RouteMeta 接口
declare module 'vue-router' {
  interface RouteMeta {
    title?: string
    isLink?: string
    isHide?: boolean
    isKeepAlive?: boolean
    isAffix?: boolean
    isIframe?: boolean
    roles?: string[]
    icon?: string
  }
}

/**
 * 定义动态路由
 * 前端添加路由，请在顶级节点的 `children 数组` 里添加
 * @description 未开启 isRequestRoutes 为 true 时使用（前端控制路由），开启时第一个顶级 children 的路由将被替换成接口请求回来的路由数据
 * @description 各字段请查看 `/@/views/system/menu/component/addMenu.vue 下的 ruleForm`
 * @returns 返回路由菜单数据
 */
export const dynamicRoutes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: '/',
    component: () => import('/@/layout/index.vue'),
    redirect: '/home',
    meta: {
      isKeepAlive: true
    },
    children: [
      {
        path: '/home',
        name: 'home',
        component: () => import('/@/views/home/index.vue'),
        meta: {
          title: '工作台',
          isLink: '',
          isHide: true,
          isKeepAlive: true,
          isAffix: true,
          isIframe: false,
          roles: ['admin', 'common'],
          icon: ''
        }
      },
      {
        path: '/assets',
        name: 'assets',
        component: () => import('/@/layout/routerView/parent.vue'),
        redirect: '/assets/equipment',
        meta: {
          title: '设备资产管理',
          isLink: '',
          isHide: true,
          isKeepAlive: true,
          isAffix: false,
          isIframe: false,
          roles: ['admin', 'common'],
          icon: ''
        },
        children: [
          {
            path: '/assets/equipment',
            name: 'assetsEquipment',
            component: () => import('/@/views/assets/EquipmentList.vue'),
            meta: {
              title: '设备列表清单',
              isLink: '',
              isHide: true,
              isKeepAlive: true,
              isAffix: false,
              isIframe: false,
              roles: ['admin', 'common'],
              icon: ''
            },
            children: [
              {
                path: '/assets/equipment/deviceDetail',
                name: 'deviceDetail',
                component: () => import('/@/views/assets/DeviceDetail.vue'),
                meta: {
                  title: '设备详情',
                  isLink: '',
                  isHide: true,
                  isKeepAlive: true,
                  isAffix: false,
                  isIframe: false,
                  roles: ['admin', 'common'],
                  icon: ''
                }
              },
              {
                path: '/assets/equipment/allPersonal',
                name: 'allPersonal',
                component: () => import('/@/views/assets/AllPersonal.vue'),
                meta: {
                  title: '全部履历',
                  isLink: '',
                  isHide: true,
                  isKeepAlive: true,
                  isAffix: false,
                  isIframe: false,
                  roles: ['admin', 'common'],
                  icon: ''
                }
              }
            ]
          },
          {
            path: '/assets/spareparts',
            name: 'assetsSpareParts',
            component: () => import('/@/views/assets/SpareParts.vue'),
            meta: {
              title: '设备备件关联',
              isLink: '',
              isHide: true,
              isKeepAlive: true,
              isAffix: false,
              isIframe: false,
              roles: ['admin', 'common'],
              icon: ''
            }
          },
          {
            path: '/assets/allRelevance',
            name: 'allRelevance',
            component: () => import('/@/views/assets/AllRelevance.vue'),
            meta: {
              title: '关联备件列表',
              isLink: '',
              isHide: true,
              isKeepAlive: true,
              isAffix: false,
              isIframe: false,
              roles: ['admin', 'common'],
              icon: ''
            }
          },
          {
            path: '/assets/supplier',
            name: 'assetsSupplier',
            component: () => import('/@/views/assets/Supplier.vue'),
            meta: {
              title: '供应厂家列表',
              isLink: '',
              isHide: true,
              isKeepAlive: true,
              isAffix: false,
              isIframe: false,
              roles: ['admin', 'common'],
              icon: ''
            }
          },
          {
            path: '/assets/tagManage',
            name: 'assetsTagManage',
            component: () => import('/@/views/assets/TagManage.vue'),
            meta: {
              title: '标签管理',
              isLink: '',
              isHide: true,
              isKeepAlive: true,
              isAffix: false,
              isIframe: false,
              roles: ['admin', 'common'],
              icon: ''
            }
          },
          {
            path: '/assets/depositInfo',
            name: 'assetsDepositInfo',
            component: () => import('/@/views/assets/DepositInfo.vue'),
            meta: {
              title: '存放信息',
              isLink: '',
              isHide: true,
              isKeepAlive: true,
              isAffix: false,
              isIframe: false,
              roles: ['admin', 'common'],
              icon: ''
            }
          }
        ]
      },
      {
        path: '/daily',
        name: 'daily',
        component: () => import('/@/layout/routerView/parent.vue'),
        redirect: '/daily/assetReturn',
        meta: {
          title: '日常管理',
          isLink: '',
          isHide: true,
          isKeepAlive: true,
          isAffix: false,
          isIframe: false,
          roles: ['admin', 'common'],
          icon: ''
        },
        children: [
          {
            path: '/daily/assetReturn',
            name: '/daily/assetReturn',
            component: () => import('/@/views/assets/EquipmentList.vue'),
            meta: {
              title: '领用归还',
              isLink: '',
              isHide: true,
              isKeepAlive: true,
              isAffix: false,
              isIframe: false,
              roles: ['admin', 'common'],
              icon: ''
            },
            children: [
              {
                path: '/assets/equipment/deviceDetail',
                name: 'deviceDetail',
                component: () => import('/@/views/assets/DeviceDetail.vue'),
                meta: {
                  title: '设备详情',
                  isLink: '',
                  isHide: true,
                  isKeepAlive: true,
                  isAffix: false,
                  isIframe: false,
                  roles: ['admin', 'common'],
                  icon: ''
                }
              },
              {
                path: '/assets/equipment/allPersonal',
                name: 'allPersonal',
                component: () => import('/@/views/assets/AllPersonal.vue'),
                meta: {
                  title: '全部履历',
                  isLink: '',
                  isHide: true,
                  isKeepAlive: true,
                  isAffix: false,
                  isIframe: false,
                  roles: ['admin', 'common'],
                  icon: ''
                }
              }
            ]
          },
          {
            path: '/daily/assetChange',
            name: 'assetChange',
            component: () => import('/@/views/assets/SpareParts.vue'),
            meta: {
              title: '资产变更',
              isLink: '',
              isHide: true,
              isKeepAlive: true,
              isAffix: false,
              isIframe: false,
              roles: ['admin', 'common'],
              icon: ''
            }
          },
          {
            path: '/daily/assetInventory',
            name: 'assetInventory',
            component: () => import('/@/views/assets/AllRelevance.vue'),
            meta: {
              title: '资产盘点',
              isLink: '',
              isHide: true,
              isKeepAlive: true,
              isAffix: false,
              isIframe: false,
              roles: ['admin', 'common'],
              icon: ''
            }
          },
          {
            path: '/daily/assetTransfer',
            name: 'assetTransfer',
            component: () => import('/@/views/assets/Supplier.vue'),
            meta: {
              title: '资产转移',
              isLink: '',
              isHide: true,
              isKeepAlive: true,
              isAffix: false,
              isIframe: false,
              roles: ['admin', 'common'],
              icon: ''
            }
          },
          {
            path: '/daily/assetHandle',
            name: 'assetHandle',
            component: () => import('/@/views/assets/TagManage.vue'),
            meta: {
              title: '资产报废',
              isLink: '',
              isHide: true,
              isKeepAlive: true,
              isAffix: false,
              isIframe: false,
              roles: ['admin', 'common'],
              icon: ''
            }
          }
        ]
      },
      {
        path: '/repair',
        name: 'repair',
        component: () => import('/@/layout/routerView/parent.vue'),
        redirect: '/repair/Order',
        meta: {
          title: '设备维修管理',
          isLink: '',
          isHide: true,
          isKeepAlive: true,
          isAffix: false,
          isIframe: false,
          roles: ['admin', 'common'],
          icon: ''
        },
        children: [
          {
            path: '/repair/Order',
            name: 'repairOrder',
            component: () => import('/@/views/repair/Order.vue'),
            meta: {
              title: '维修单',
              isLink: '',
              isHide: true,
              isKeepAlive: true,
              isAffix: false,
              isIframe: false,
              roles: ['admin', 'common'],
              icon: ''
            },
            children: [
              {
                path: '/repair/Order/OrderDetail',
                name: 'repairOrderDetail',
                component: () => import('/@/views/repair/OrderDetail.vue'),
                meta: {
                  title: '维修单详情',
                  isLink: '',
                  isHide: true,
                  isKeepAlive: false,
                  isAffix: false,
                  isIframe: false,
                  roles: ['admin', 'common'],
                  icon: ''
                }
              },
              {
                path: '/repair/Order/SubcontractingAndEntry',
                name: 'subcontractingAndEntry',
                component: () =>
                  import('/@/views/repair/SubcontractingAndEntry.vue'),
                meta: {
                  title: '委外维修与维修录入',
                  isLink: '',
                  isHide: true,
                  isKeepAlive: true,
                  isAffix: false,
                  isIframe: false,
                  roles: ['admin', 'common'],
                  icon: ''
                }
              },
              {
                path: '/repair/Order/TransmitRecord',
                name: 'orderTransmitRecord',
                component: () => import('/@/views/repair/TransmitRecord.vue'),
                meta: {
                  title: '转交记录',
                  isLink: '',
                  isHide: true,
                  isKeepAlive: true,
                  isAffix: false,
                  isIframe: false,
                  roles: ['admin', 'common'],
                  icon: ''
                }
              }
            ]
          },
          {
            path: '/repair/FaultItem',
            name: 'repairFaultItem',
            component: () => import('/@/views/repair/FaultItem.vue'),
            meta: {
              title: '故障项管理',
              isLink: '',
              isHide: true,
              isKeepAlive: true,
              isAffix: false,
              isIframe: false,
              roles: ['admin', 'common'],
              icon: ''
            }
          }
        ]
      },
      {
        path: '/maintenance',
        name: 'maintenance',
        component: () => import('/@/layout/routerView/parent.vue'),
        redirect: '/maintenance/Plan',
        meta: {
          title: '设备维保管理',
          isLink: '',
          isHide: true,
          isKeepAlive: true,
          isAffix: false,
          isIframe: false,
          roles: ['admin', 'common'],
          icon: ''
        },
        children: [
          {
            path: '/maintenance/Task',
            name: 'maintenanceTask',
            component: () => import('/@/views/maintenance/Task.vue'),
            meta: {
              title: '维保任务',
              isLink: '',
              isHide: true,
              isKeepAlive: false,
              isAffix: false,
              isIframe: false,
              roles: ['admin', 'common'],
              icon: ''
            },
            children: [
              {
                path: '/maintenance/Task/transmitRecord',
                name: 'maintenanceTransmitRecord',
                component: () =>
                  import('/@/views/maintenance/TransmitRecord.vue'),
                meta: {
                  title: '转交记录',
                  isLink: '',
                  isHide: true,
                  isKeepAlive: true,
                  isAffix: false,
                  isIframe: false,
                  roles: ['admin', 'common'],
                  icon: ''
                }
              }
            ]
          },
          {
            path: '/maintenance/Plan',
            name: 'maintenancePlan',
            component: () => import('/@/views/maintenance/Plan.vue'),
            meta: {
              title: '维保计划',
              isLink: '',
              isHide: true,
              isKeepAlive: true,
              isAffix: false,
              isIframe: false,
              roles: ['admin', 'common'],
              icon: ''
            },
            children: [
              {
                path: '/maintenance/Plan/addPlan',
                name: 'maintenanceAddPlan',
                component: () => import('/@/views/maintenance/AddPlan.vue'),
                meta: {
                  title: '新增维保计划',
                  isLink: '',
                  isHide: true,
                  isKeepAlive: true,
                  isAffix: false,
                  isIframe: false,
                  roles: ['admin', 'common'],
                  icon: ''
                }
              },
              {
                path: '/maintenance/Plan/eidtPlan',
                name: 'maintenanceEidtPlan',
                component: () => import('/@/views/maintenance/AddPlan.vue'),
                meta: {
                  title: '编辑维保计划',
                  isLink: '',
                  isHide: true,
                  isKeepAlive: true,
                  isAffix: false,
                  isIframe: false,
                  roles: ['admin', 'common'],
                  icon: ''
                }
              }
            ]
          },
          {
            path: '/maintenance/Setting',
            name: 'maintenanceSetting',
            component: () => import('/@/views/maintenance/Setting.vue'),
            meta: {
              title: '维保项目设置',
              isLink: '',
              isHide: true,
              isKeepAlive: true,
              isAffix: false,
              isIframe: false,
              roles: ['admin', 'common'],
              icon: ''
            }
          }
        ]
      },
      {
        path: '/check',
        name: 'check',
        component: () => import('/@/layout/routerView/parent.vue'),
        redirect: '/check/plan',
        meta: {
          title: '设备点检管理',
          isLink: '',
          isHide: true,
          isKeepAlive: true,
          isAffix: false,
          isIframe: false,
          roles: ['admin', 'common'],
          icon: ''
        },
        children: [
          {
            path: '/check/checkTask',
            name: 'checkTask',
            component: () => import('/@/views/check/CheckTask.vue'),
            meta: {
              title: '点检任务',
              isLink: '',
              isHide: true,
              isKeepAlive: true,
              isAffix: false,
              isIframe: false,
              roles: ['admin', 'common'],
              icon: ''
            },
            children: [
              {
                path: '/check/transmitRecord',
                name: 'checkTransmitRecord',
                component: () => import('/@/views/check/TransmitRecord.vue'),
                meta: {
                  title: '转交记录',
                  isLink: '',
                  isHide: true,
                  isKeepAlive: true,
                  isAffix: false,
                  isIframe: false,
                  roles: ['admin', 'common'],
                  icon: ''
                }
              }
            ]
          },
          {
            path: '/check/plan',
            name: 'checkPlan',
            component: () => import('/@/views/check/CheckPlan.vue'),
            meta: {
              title: '点检计划',
              isLink: '',
              isHide: true,
              isKeepAlive: true,
              isAffix: false,
              isIframe: false,
              roles: ['admin', 'common'],
              icon: ''
            },
            children: [
              {
                path: '/check/plan/addPlan',
                name: 'checkAddPlan',
                component: () => import('/@/views/check/AddPlan.vue'),
                meta: {
                  title: '新增点检计划',
                  isLink: '',
                  isHide: true,
                  isKeepAlive: true,
                  isAffix: false,
                  isIframe: false,
                  roles: ['admin', 'common'],
                  icon: ''
                }
              },
              {
                path: '/check/plan/editPlan',
                name: 'checkEidtPlan',
                component: () => import('/@/views/check/AddPlan.vue'),
                meta: {
                  title: '编辑点检计划',
                  isLink: '',
                  isHide: true,
                  isKeepAlive: true,
                  isAffix: false,
                  isIframe: false,
                  roles: ['admin', 'common'],
                  icon: ''
                }
              }
            ]
          },
          {
            path: '/check/checkStandard',
            name: 'checkStandard',
            component: () => import('/@/views/check/CheckStandard.vue'),
            meta: {
              title: '点检标准',
              isLink: '',
              isHide: true,
              isKeepAlive: true,
              isAffix: false,
              isIframe: false,
              roles: ['admin', 'common'],
              icon: ''
            }
          }
        ]
      },
      {
        path: '/spare',
        name: 'spare',
        component: () => import('/@/layout/routerView/parent.vue'),
        redirect: '/spare/spareList',
        meta: {
          title: '设备备件管理',
          isLink: '',
          isHide: true,
          isKeepAlive: true,
          isAffix: false,
          isIframe: false,
          roles: ['admin', 'common'],
          icon: ''
        },
        children: [
          {
            path: '/spare/spareList',
            name: 'spareList',
            component: () => import('/@/views/spare/SpareList.vue'),
            meta: {
              title: '备件管理',
              isLink: '',
              isHide: true,
              isKeepAlive: true,
              isAffix: false,
              isIframe: false,
              roles: ['admin', 'common'],
              icon: ''
            },
            children: [
              {
                path: '/spare/spareList/addSpare',
                name: 'addSpare',
                component: () => import('/@/views/spare/AddSpare.vue'),
                meta: {
                  title: '新增备件',
                  isLink: '',
                  isHide: true,
                  isKeepAlive: false,
                  isAffix: false,
                  isIframe: false,
                  roles: ['admin', 'common'],
                  icon: ''
                }
              },
              {
                path: '/spare/spareList/usageRecord',
                name: 'usageRecord',
                component: () => import('/@/views/spare/UsageRecord.vue'),
                meta: {
                  title: '使用记录',
                  isLink: '',
                  isHide: true,
                  isKeepAlive: false,
                  isAffix: false,
                  isIframe: false,
                  roles: ['admin', 'common'],
                  icon: ''
                }
              }
            ]
          },
          {
            path: '/spare/recordList',
            name: 'recordList',
            component: () => import('/@/views/spare/RecordList.vue'),
            meta: {
              title: '出入库记录',
              isLink: '',
              isHide: true,
              isKeepAlive: true,
              isAffix: false,
              isIframe: false,
              roles: ['admin', 'common'],
              icon: ''
            }
          },
          {
            path: '/spare/recordList/OrderDetailR',
            name: 'repairOrderDetailR',
            component: () => import('/@/views/repair/OrderDetail.vue'),
            meta: {
              title: '维修单详情',
              isLink: '',
              isHide: true,
              isKeepAlive: false,
              isAffix: false,
              isIframe: false,
              roles: ['admin', 'common'],
              icon: ''
            }
          },
          {
            path: '/spare/apply',
            name: 'apply',
            component: () => import('/@/views/spare/SpareApply.vue'),
            meta: {
              title: '备件申请管理',
              isLink: '',
              isHide: true,
              isKeepAlive: true,
              isAffix: false,
              isIframe: false,
              roles: ['admin', 'common'],
              icon: ''
            }
          },
          {
            path: '/spare/return',
            name: 'return',
            component: () => import('/@/views/spare/SpareReturn.vue'),
            meta: {
              title: '备件退还管理',
              isLink: '',
              isHide: true,
              isKeepAlive: true,
              isAffix: false,
              isIframe: false,
              roles: ['admin', 'common'],
              icon: ''
            }
          }
        ]
      },
      {
        path: '/user',
        name: 'user',
        component: () => import('/@/layout/routerView/parent.vue'),
        redirect: '/user/MyInfo',
        meta: {
          title: '个人中心',
          isLink: '',
          isHide: true,
          isKeepAlive: false,
          isAffix: false,
          isIframe: false,
          roles: ['admin', 'common'],
          icon: ''
        },
        children: [
          {
            path: '/user/MyInfo',
            name: 'myInfo',
            component: () => import('/@/views/user/MyInfo.vue'),
            meta: {
              title: '账号信息',
              isLink: '',
              isHide: true,
              isKeepAlive: false,
              isAffix: false,
              isIframe: false,
              roles: ['admin', 'common'],
              icon: ''
            }
          }
        ]
      },
      {
        path: '/knowledge',
        name: 'knowledge',
        component: () => import('/@/views/knowledge/index.vue'),
        meta: {
          title: '知识库管理',
          isLink: '',
          isHide: true,
          isKeepAlive: true,
          isAffix: true,
          isIframe: false,
          roles: ['admin', 'common'],
          icon: 'iconfont icon-web-zhishikuguanli'
        }
      },
      {
        path: '/messagecenter',
        name: 'messagecenter',
        component: () => import('/@/views/message/MessageCenter.vue'),
        meta: {
          title: '消息中心',
          isLink: '',
          isHide: true,
          isKeepAlive: true,
          isAffix: true,
          isIframe: false,
          roles: ['admin', 'common'],
          icon: ''
        }
      },
      {
        path: '/helpcenter',
        name: 'helpcenter',
        component: () => import('/@/views/help/index.vue'),
        meta: {
          title: '帮助中心',
          isLink: '',
          isHide: true,
          isKeepAlive: true,
          isAffix: true,
          isIframe: false,
          roles: ['admin', 'common'],
          icon: ''
        }
      },
      {
        path: '/setting',
        name: 'setting',
        component: () => import('/@/layout/routerView/parent.vue'),
        redirect: '/setting/Structure',
        meta: {
          title: '企业设置管理',
          isLink: '',
          isHide: true,
          isKeepAlive: true,
          isAffix: false,
          isIframe: false,
          roles: ['admin', 'common'],
          icon: 'iconfont icon-web-jichushezhi'
        },
        children: [
          {
            path: '/setting/Structure',
            name: 'Structure',
            component: () => import('/@/views/setting/Structure.vue'),
            meta: {
              title: '组织架构',
              isLink: '',
              isHide: true,
              isKeepAlive: false,
              isAffix: false,
              isIframe: false,
              roles: ['admin', 'common'],
              icon: ''
            }
          },
          {
            path: '/setting/Role',
            name: 'settingRole',
            component: () => import('/@/views/setting/Role.vue'),
            meta: {
              title: '角色配置',
              isLink: '',
              isHide: true,
              isKeepAlive: false,
              isAffix: false,
              isIframe: false,
              roles: ['admin', 'common'],
              icon: ''
            },
            children: [
              {
                path: '/setting/Role/PermissionDispose',
                name: 'settingPermissionDispose',
                component: () =>
                  import('/@/views/setting/PermissionDispose.vue'),
                meta: {
                  title: '权限配置',
                  isLink: '',
                  isHide: true,
                  isKeepAlive: false,
                  isAffix: false,
                  isIframe: false,
                  roles: ['admin', 'common'],
                  icon: ''
                }
              },
              {
                path: '/setting/Role/DataViewPermission',
                name: 'settingDataViewPermission',
                component: () =>
                  import('/@/views/setting/DataViewPermission.vue'),
                meta: {
                  title: '数据查看权限',
                  isLink: '',
                  isHide: true,
                  isKeepAlive: false,
                  isAffix: false,
                  isIframe: false,
                  roles: ['admin', 'common'],
                  icon: ''
                }
              }
            ]
          },
          {
            path: '/setting/EnterpriseInfo',
            name: 'EnterpriseInfo',
            component: () => import('/@/views/setting/EnterpriseInfo.vue'),
            meta: {
              title: '企业信息设置',
              isLink: '',
              isHide: true,
              isKeepAlive: false,
              isAffix: false,
              isIframe: false,
              roles: ['admin', 'common'],
              icon: ''
            }
          },
          {
            path: '/setting/Dictionaries',
            name: 'Dictionaries',
            component: () => import('/@/views/setting/Dictionaries.vue'),
            meta: {
              title: '数据字典配置',
              isLink: '',
              isHide: true,
              isKeepAlive: false,
              isAffix: false,
              isIframe: false,
              roles: ['admin', 'common'],
              icon: ''
            }
          },
          {
            path: '/setting/Journal',
            name: 'Journal',
            component: () => import('/@/views/setting/Journal.vue'),
            meta: {
              title: '操作日志',
              isLink: '',
              isHide: true,
              isKeepAlive: false,
              isAffix: false,
              isIframe: false,
              roles: ['admin', 'common'],
              icon: ''
            }
          }
        ]
      }
      /**
       * 注意此处详情写法：
       * 1、嵌套进父级里时，面包屑显示为：首页/页面/过滤筛选组件/过滤筛选组件详情
       * 2、不嵌套进父级时，面包屑显示为：首页/页面/过滤筛选组件/过滤筛选组件详情
       * 3、想要父级不高亮，面包屑显示为：首页/页面/过滤筛选组件详情，设置路径为：/pages/filteringDetails
       */
    ]
  }
]

/**
 * 定义404、401界面
 * @link 参考：https://next.router.vuejs.org/zh/guide/essentials/history-mode.html#netlify
 */
export const notFoundAndNoPower = [
  {
    path: '/:path(.*)*',
    name: 'notFound',
    component: () => import('/@/views/error/404.vue'),
    meta: {
      title: 'message.staticRoutes.notFound',
      isHide: true
    }
  },
  {
    path: '/401',
    name: 'noPower',
    component: () => import('/@/views/error/401.vue'),
    meta: {
      title: 'message.staticRoutes.noPower',
      isHide: true
    }
  }
]

/**
 * 定义静态路由（默认路由）
 * 此路由不要动，前端添加路由的话，请在 `dynamicRoutes 数组` 中添加
 * @description 前端控制直接改 dynamicRoutes 中的路由，后端控制不需要修改，请求接口路由数据时，会覆盖 dynamicRoutes 第一个顶级 children 的内容（全屏，不包含 layout 中的路由出口）
 * @returns 返回路由菜单数据
 */
export const staticRoutes: Array<RouteRecordRaw> = [
  {
    path: '/login',
    name: 'login',
    component: () => import('/@/views/login/index.vue'),
    meta: {
      title: '登录'
    }
  },
  /**
   * 提示：写在这里的为全屏界面，不建议写在这里
   * 请写在 `dynamicRoutes` 路由数组中
   */
  {
    path: '/loginQR',
    name: 'loginQR',
    component: () => import('/@/views/loginQR/index.vue'),
    meta: {
      title: '扫码登录'
    }
  }
  // {
  // 	path: '/visualizingDemo2',
  // 	name: 'visualizingDemo2',
  // 	component: () => import('/@/views/visualizing/demo2.vue'),
  // 	meta: {
  // 		title: 'message.router.visualizingLinkDemo2',
  // 	},
  // },
]
